Xbasic

OBJECT.FETCH_PREV Function

Syntax

.Fetch_Prev([table as c])

Arguments

table

Character

Description

Moves to the previous record in the query.

Discussion

The <OBJECT>.FETCH_PREV() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.FETCH_PREV() method moves to the previous record in the current query.

Example

This script is attached to a button. It moves to the previous record in the current query:

parentform.fetch_previous()

This script is attached to a button. It moves to the previous record in the embedded browse (called Items) on a form:

parentform:items.fetch_previous()

Limitations

Desktop applications only.

See Also